<html xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" xmlns:th="http://www.thymeleaf.org/">
<div class="layui-header">
    <div class="layui-logo"><a th:href="@{/pages/back/admin/index}" style="color: #fff">layui 后台布局</a></div>
    <!--<div class="layui-nav layui-layout-left layuimini-header-menu layuimini-menu-header-pc layuimini-pc-show">d</div>-->
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
        <span shiro:hasRole="user">
        <li class="layui-nav-item"><a class="layui-icon layui-icon-service" th:href="@{/pages/back/comment/staffCommentPre}">意见反馈</a></li>
            </span>
    </ul>
    <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item">
            <a class="layui-icon layui-icon-username" href="javascript:;">
                <img th:src="@{${session.admin.photo}}" class="layui-nav-img">
                <span th:text="${session.admin.name}"></span>
            </a>
            <dl class="layui-nav-child">
                <dd><a class="layui-icon layui-icon-set" th:href="@{/pages/back/admin/updatePasswordPre}">安全设置</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item"><a class="layui-icon layui-icon-logout" th:href="@{/pages/logOut}">注销</a></li>
    </ul>
</div>
</html>